package com.hk.task.manage.login;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component("TestTask")
@Lazy(false)
public class TestTask {
    private static final Logger LOGGER = LoggerFactory.getLogger(TestTask.class);

//    @Scheduled(cron = "*/5 * * * * ?")
//    public void executeTask(){
//        for (int i = 0; i < 10; i++) {
//            LOGGER.info("定时任务：{}",i);
//        }
//    }
}
